package com.yh.services.impl;


import com.yh.dao.IHouseMapper;
import com.yh.entity.House;
import com.yh.services.IHouseService;
import com.yh.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class HouseServiceImpl implements IHouseService {
    SqlSession session= SqlSessionFactoryUtil.getSqlsession();
    IHouseMapper mapper = session.getMapper(IHouseMapper.class);
    @Override
    public List showAllByKey(House house) {

        return mapper.showAllByKey(house);
    }
}
